<html>
<script type="text/javascript" src="/lib/prototype-1.6.0.2.js"></script>
<script type="text/javascript">
{literal}
function testAjax()
{
	new Ajax.Request('/main/ajax/', {
		method: 'get',
		parameters: {action: 'Get', test: 'hello'},
		onSuccess: function(request) {
			var response = request.responseText.evalJSON();
			$('testdiv').innerHTML = response.result.test;
		}
	});
}
{/literal}
</script>
<body>
<form method="post" action="/main/index/">
{include file="app/common/templates/banner.tpl"}

{$result}

{$mainindex.action.html}
<p></p>
{$mainindex.text1.html}
<p></p>
<input type="submit">
<input type="button" onclick="testAjax()">
<div id="testdiv"></div>
</form>
</body>
</html>